package interfaces;

import java.sql.SQLException;
import java.util.ArrayList;
import model.Specie;

public interface ISpecies {
  public boolean create(Specie specie) throws SQLException, ClassNotFoundException;
  public boolean update(Specie specie) throws SQLException, ClassNotFoundException;
  public boolean delete(Specie specie) throws SQLException, ClassNotFoundException;
  public ArrayList<Specie> retrieveByUsualName(String name) throws SQLException, ClassNotFoundException;
  public ArrayList<Specie> retrieveByScientificName(String scientific) throws SQLException, ClassNotFoundException;
  public ArrayList<Specie> retrieveAll() throws SQLException, ClassNotFoundException;
}
